<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="Restoring a GBase 8a Database">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="en-us_topic_0000001839222185.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="30-OceanProtect Appliance 1.5.0-1.6.0 Help Center">
<meta name="DC.Publisher" content="20240608">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="EN-US_TOPIC_0000001792343050">
<meta name="DC.Language" content="en-us">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>Restoring a GBase 8a Database</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="EN-US_TOPIC_0000001792343050"></a><a name="EN-US_TOPIC_0000001792343050"></a>

<h1 class="topictitle1">Restoring a GBase 8a Database</h1>
<div><p>This section describes how to restore a database that has been backed up to the original location or a new location.</p>
<div class="section"><h4 class="sectiontitle">Prerequisites</h4><ul><li>When data is restored to the original or new location, ensure that the remaining space of the target location is greater than the size of the restoration copy before reduction. Otherwise, the restoration will fail.</li><li>Before the restoration, you need to ensure that the source database version matches the target database version. Otherwise, the restoration will fail.</li><li>During the restoration, the topology structure and database name of the cluster must be the same as those during the backup, including the management node, data node, and data distribution information.</li><li>Before the restoration, you need to ensure that the GBase 8a database is running properly and the network connection of each node in the cluster is normal.</li><li>During the restoration, the passwords of the OS and database users cannot be changed.</li></ul>
</div>
<div class="section"><h4 class="sectiontitle">Procedure</h4><ol><li><span>Choose <span class="uicontrol" id="EN-US_TOPIC_0000001792343050__en-us_topic_0000001839142377_uicontrol01751955491"><b><span id="EN-US_TOPIC_0000001792343050__en-us_topic_0000001839142377_text717565144913"><strong>Explore</strong></span> &gt; <span id="EN-US_TOPIC_0000001792343050__en-us_topic_0000001839142377_text217518584917"><strong>Copy Data</strong></span> &gt; <span id="EN-US_TOPIC_0000001792343050__en-us_topic_0000001839142377_text11107161017483"><strong>Databases</strong></span> &gt; General Databases</b></span>.</span></li><li><span>Search for copies by database or copy. This section describes how to search for copies by database.</span><p><p>On the <span><strong>Resources</strong></span> tab page, locate the database to be restored by database name and then click the name.</p>
</p></li><li><span>Click <span class="uicontrol"><b><span><strong>Copy Data</strong></span></b></span> and select the year, month, and day in sequence to locate the copy.</span><p><p>If <span><img src="en-us_image_0000001792343246.png"></span> is displayed below a month or day, copies exist in the month or on the day.</p>
</p></li><li><span>Restore data using a specific copy.</span><p><ol type="a"><li>Specify a copy for restoration.<p><span><img class="eddx" src="en-us_image_0000001839142361.png"></span></p>
</li></ol><ol type="a" start="2"><li>Restore a GBase 8a database to the original location or a new location.<ul><li>Restore the GBase 8a database to the original location.<ol class="substepthirdol"><li>Select <span class="uicontrol"><b><span><strong>Original location</strong></span></b></span> for restoration.</li><li>Click <span class="uicontrol"><b>GBase 8a</b></span>.</li></ol>
</li><li>Restore the GBase 8a database to a new location.<ol class="substepthirdol"><li>Select <span class="uicontrol"><b><span><strong>New location</strong></span></b></span> for restoration.</li><li>Set the basic and advanced parameters of the restoration job.<p><a href="#EN-US_TOPIC_0000001792343050__table261702245415">Table 1</a> describes the related parameters.</p>

<div class="tablenoborder"><a name="EN-US_TOPIC_0000001792343050__table261702245415"></a><a name="table261702245415"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001792343050__table261702245415" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters of a restoration job</caption><colgroup><col style="width:18.41%"><col style="width:81.58999999999999%"></colgroup><thead align="left"><tr><th align="left" class="cellrowborder" valign="top" width="18.41%" id="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.1"><p>Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="81.58999999999999%" id="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.2"><p>Description</p>
</th>
</tr>
</thead>
<tbody><tr><td class="cellrowborder" valign="top" width="18.41%" headers="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.1 "><p><span><strong>Hosts</strong></span></p>
</td>
<td class="cellrowborder" valign="top" width="81.58999999999999%" headers="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.2 "><p>Restore data to a single host in the target cluster.</p>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="18.41%" headers="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.1 "><p><span><strong>Target Database</strong></span></p>
</td>
<td class="cellrowborder" valign="top" width="81.58999999999999%" headers="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.2 "><p>Target database to which data is restored.</p>
<div class="note"><span class="notetitle"> NOTE: </span><div class="notebody"><ul><li>Data in the target database will be overwritten during restoration.</li></ul>
</div></div>
</td>
</tr>
<tr><td class="cellrowborder" valign="top" width="18.41%" headers="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.1 "><p><span><strong>Customized Parameters</strong></span></p>
</td>
<td class="cellrowborder" valign="top" width="81.58999999999999%" headers="mcps1.3.3.2.4.2.2.1.1.2.1.2.2.2.3.1.2 "><p>Set parameters in some database scenarios.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li>Click <span class="uicontrol"><b><span><strong>OK</strong></span></b></span>.</li></ol>
</li></ul>
</li></ol>
</p></li><li><span>Click <span class="uicontrol"><b><span><strong>OK</strong></span></b></span>.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0000001839222185.html">Restoration</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">Copyright &copy; Huawei Technologies Co., Ltd.</div></body>
</html>